Skip to content

Fix VectorCAST source coverage columns, colors, and tooltips - #335

Merged
uhafner merged 2 commits into
jenkinsci:mainfrom
TimSVector:codex/vectorcast-coverage-fixes
Oct 5, 2026
Merged

uhafner merged 2 commits into
jenkinsci:mainfrom
TimSVector:codex/vectorcast-coverage-fixes

Conversation

@TimSVector

Copy link
Copy Markdown
Contributor

Fix VectorCAST source coverage rendering for extended Cobertura reports.

Display MC/DC and function call coverage in separate source columns, with headers matching the available metrics. Leave cells blank when a line has no applicable coverage items, and color each metric independently.

Correct coverage tooltip text and initialize tooltips after source content is loaded dynamically.

Related coverage-model changes:

Testing done

  • Added automated source-rendering tests covering metric columns, independent colors, empty cells, and tooltip text. All 12 source-printer tests passed.
  • Ran the plugin suite on JDK 25 against Jenkins 2.580.1: 337 unit tests and 7 VectorCAST integration tests passed.
  • Traced a real VectorCAST extended Cobertura report through parsing and source HTML rendering, including lines containing branch, MC/DC, and function call coverage together.
  • Checkstyle passed after correcting the new test formatting.
  • Full verification remains blocked by 30 SpotBugs findings. The same findings were reproduced with these changes stashed.

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

@github-actions
github-actions Bot requested a review from uhafner October 5, 2026 14:34
@TimSVector TimSVector changed the title updates for issue with metrics not getting properly pass the coverage… Fix VectorCAST source coverage columns, colors, and tooltips Oct 5, 2026
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown

☀️   Quality Monitor

Tests

   JUnit   Unit Tests: ✅ successful — 439 passed $\color{green}{\textsf{(+41)}}$
   ⛔   Architecture Tests: ✅ successful — 10 passed $\textsf{(±0)}$

Coverage for New Code

   〰️   Line Coverage: 100.00% — perfect 🎉
   ➰   Branch Coverage: 95.45% — 1 missed branches
   PIT   Mutation Coverage: 92.31% — 2 survived mutations
   💪   Test Strength: 100.00% — perfect 🎉

Coverage for Whole Project

   〰️   Line Coverage: 96.82% $\color{green}{\textsf{(+0.99)}}$ — 105 missed lines
   ➰   Branch Coverage: 91.90% $\color{green}{\textsf{(+0.61)}}$ — 109 missed branches
   PIT   Mutation Coverage: 90.68% $\color{green}{\textsf{(+1.17)}}$ — 145 survived mutations
   💪   Test Strength: 92.83% $\color{green}{\textsf{(+0.16)}}$ — 109 survived mutations in tested code

Style

   CheckStyle   CheckStyle: No warnings $\textsf{(±0)}$
   PMD   PMD: No warnings $\textsf{(±0)}$
   ☕   Java Compiler: No warnings $\textsf{(±0)}$

Bugs

   SpotBugs   SpotBugs: No bugs $\textsf{(±0)}$
   🐛   Error Prone: No bugs $\textsf{(±0)}$

API Problems

   🚫   Revapi: No warnings $\textsf{(±0)}$

Vulnerabilities

   🛡️   OWASP Dependency Check: No vulnerabilities $\textsf{(±0)}$

Software Metrics

   🌀   Cyclomatic Complexity: 976 (total)
   💭   Cognitive Complexity: 763 (total)
   ➿   N-Path Complexity: 1556 (total)
   📏   Lines of Code: 9731 (total)
   📝   Non Commenting Source Statements: 3949 (total)
   🔗   Class Cohesion: 54.55% (maximum)
   ⚖️   Weight of Class: 100.00% (maximum)

📌 Reference Results

Delta reports computed against the reference results of e617860 in workflow run 30803974025.

🚦 Quality Gates

Overall Status: ✅ SUCCESS

✅ Passed Gates

  • ✅ Overall Tests Success Rate: 100.00 >= 100.00
  • ✅ Line Coverage in New Code: 100.00 >= 90.00
  • ✅ Branch Coverage in New Code: 95.45 >= 90.00
  • ✅ Mutation Coverage in New Code: 92.31 >= 90.00
  • ✅ Potential Bugs in Whole Project: 0.00 <= 0.00
  • ✅ Style Violation in Whole Project: 0.00 <= 0.00

Created by Quality Monitor v4.15.0 (#82d77af). More details are shown in the GitHub Checks Result.

@uhafner uhafner added the bug Bugs or performance problems label Oct 5, 2026
@uhafner
uhafner merged commit 95dce6f into jenkinsci:main Oct 5, 2026
31 of 32 checks passed
@uhafner

uhafner commented Oct 5, 2026

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bugs or performance problems

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants